<%@page import="com.jane.addressbook.bean.Addressbook"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>首页</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link href="./css/table.css" rel="stylesheet" type="text/css">

<!--将jQuery引用进来-->
<script type="text/javascript" src="./js/table.js"></script>

</head>

<body onload="linecolor()" bgcolor="papayawhip">
	<h1>联系人列表</h1>
	<a href="addOrUpdate.jsp">添加</a>
	<table class="data" id="data" border="1" cellspacing="0" cellpadding="1">

		<thead>
			<tr>
				<th></th>
				<th>序号</th>
				<th>姓名</th>
				<th>电话1</th>
				<th>电话2</th>
				<th>性别</th>
				<th>生日</th>
				<th>邮箱</th>
				<th>地址</th>
				<th>操作</th>
			</tr>
		</thead>

		<tbody>
			<c:forEach items="${list}" var="item">
				<tr>
					<td><input type="checkbox"/></td>
					<td>${item.id }</td>
					<td>${item.name }</td>
					<td>${item.tel1 }</td>
					<td>${item.tel2 }</td>
					<td>${item.sex }</td>
					<td>${item.birthday }</td>
					<td>${item.email }</td>
					<td>${item.adress }</td>
					<td><a href="delete?id=${item.id }">删除</a>&nbsp; <a
						href="edit?id=${item.id }">编辑</a></td>
				</tr>
			</c:forEach>
		</tbody>

	</table>
<s:debug/>
</body>
</html>

